package com.epower.tools.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * @description: ${描述}
 * @author: LIU JUN
 * @create: 2021-03-21 09:57
 */
public class DatRowBean {
    private Integer sampleIndex;
    private Long timeStamp;
    private List<Object> values;

    public DatRowBean() {
        values = new ArrayList<>();
    }

    public Integer getSampleIndex() {
        return sampleIndex;
    }

    public void setSampleIndex(Integer sampleIndex) {
        this.sampleIndex = sampleIndex;
    }

    public Long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(Long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public List<Object> getValues() {
        return values;
    }

    @Override
    public String toString() {
        return "DatRowBean{" +
                "sampleIndex=" + sampleIndex +
                ", timeStamp=" + timeStamp +
                ", values=" + values +
                '}';
    }

    public DatRowBean addData(Object val) {
        this.values.add(val);
        return this;
    }
}
